body {
  background:linear-gradient(220.55deg, #FFEAF6 0%, #FF9DE4 100%);
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}
.modal > .content {
  background-color: #fff;
  width: 80%;
  height: 50%;
  padding: 20px;
  overflow: hidden;
}

.modal input{
  width: 100%;
  border: 1px solid #ccc;
  padding: 7px 0px;
  border-radius: 3px;
  padding-left:5px;
  -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
  -webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
  -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
  transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s
}
.modal input:focus{
  border-color: #66afe9;
  outline: 0;
  -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)
}

button {
  border:0;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 20px;
}

.sure-button {
  margin-top: 20px;
  padding: 5px 10px;
  border-radius: 5px;
  float: right;
}

.event {
  width: 100%;
  height: calc(100vh - 396px);
  overflow-y: auto;
  box-shadow: 0px 0px 5px -2px inset;
}
.event h1 {
  color: #2c3e50;
  text-align: center;
}

.timeline {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 5px;
  font-size: 14px;
}

/* 时间轴中心线 */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 92px;
  width: 2px;
  height: 100%;
  background: #3498db;
}

.timeline-item {
  position: relative;
  padding-left: 106px;
}

/* 时间节点圆圈 */
.timeline-item::before {
  content: '';
  position: absolute;
  left: 74px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #3498db;
  z-index: 1;
}

.timeline-date {
  position: absolute;
  left: 0;
  top: 0;
  width: 94px;
  padding: 5px;
  background: #3498db;
  color: white;
  text-align: left;
  border-radius: 4px;
  font-weight: bold;
  white-space: nowrap;
  font-size: 12px;
}

.timeline-content {
  padding: 10px;
  background: white;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.timeline-content::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 20px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid white;
}

.timeline-title {
  font-size: 18px;
  margin-bottom: 10px;
  color: #2c3e50;
  white-space: nowrap;
}

.timeline-desc {
  color: #7f8c8d;
  font-size: 14px;
}

.add {
  display: inline-block;
  width: 20px;
  height: 20px;
  color: #fff;
  border: 1px dashed;
  transition: color .25s;
  position: relative;
  overflow: hidden;
  margin: 5px 0;
}
.add:hover {
  color: #3498db;
}
.add::before, .add::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
}
.add::before {
  width: 10px;
  border-top: 2px solid;
  margin: -1px 0 0 -5px;
}
.add::after {
  height: 10px;
  border-left: 2px solid;
  margin: -5px 0 0 -1px;
}

.edit {
  float: right;
  width: 16px;
  height: 16px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>') no-repeat;
}